package org.example.demo3.service;

import org.example.demo3.info.Articleinfo;
import org.example.demo3.info.Userinfo_plus;
import org.example.demo3.mapper.*;
import org.example.demo3.info.Userinfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class Userservice {
    @Resource
    private UserMapper usermapper;
    public int reg(Userinfo userinfo) {
        int result = usermapper.reg(userinfo);
        return result;
    }
    public Userinfo login(Userinfo userinfo){
        Userinfo userinfo1=usermapper.login(userinfo);
        return userinfo1;
    }
    public Integer infor_user(Userinfo userinfo){
        return usermapper.infor_user(userinfo);
    }
    public int type_count(int id){
        return usermapper.type_count(id);
    }

}
